package zyn.kotlin.integral.car

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import zyn.kotlin.integral.bean.Cars
import zyn.kotlin.integral.entity.User

/**
 * @description
 *
 * @author zhangyanan
 * @date 2017/11/12 0012 21:48
 */
@Service
class CarsService {
    @Autowired
    lateinit var carMapper: CarMapper

    fun getCars(): List<User> {
        return carMapper.selectAll()
    }
}